home *** CD-ROM | disk | FTP | other *** search
/ Inside Mac Games Volume 4 #7 / IMG 38 July 1996.iso / Demos / Locus / Resource / INSTMENU.SCR < prev    next >
Text File  |  1995-12-03  |  2KB  |  51 lines

  1. ; This file uses Mike D.'s scripting routines to create a menu
  2. ; hierarchy.
  3.  
  4. ; FORMAT:
  5. ; MENU (menu#1_Title, <NONE/parentMenuName>,
  6. ;       entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name, n, "", "", ...
  7. ;       entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name, n, "", "", ...
  8. ;       .
  9. ;       .
  10. ;       .
  11. ;       entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name, n, "", "", ...
  12. ;       MENU_END)
  13. ;
  14. ; MENU (menu#2_Title, etc.)
  15. ;
  16. ; ...and so on.
  17.  
  18. ; IMPORTANT NOTES:
  19. ;   --When building the hierarchy,  setup uses non-case-sensetive
  20. ;       strings to identify parents and children.  So you MUST NOT
  21. ;       have two entries or menus with the same title!!
  22. ;
  23. ;   --The root level menu will have 'None' for its parent.  All other
  24. ;       windows list their parent menu here.  At the moment,  this field
  25. ;       isn't used for anything.  In the future,  it could provide
  26. ;       a means to identify non-unique menu entries.
  27. ;
  28. ;   --All entries in a menu either call a child menu or a function.
  29. ;       The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
  30. ;       for the corresponding entry.  If you enter SUBMENU,  the name
  31. ;       in the first field determines which submenu the entry will
  32. ;       call. You need no third field in this case (and should not
  33. ;       enter one). If you enter FLYMENU,  the third field defines
  34. ;       a function which generates a menu on the fly and tries to
  35. ;       attach it to the entry node. Writing FUNCTION to this field
  36. ;       causes the entry to call the function linked to the name
  37. ;       in the third field (the  linkage takes place in a list in the
  38. ;       list in the menuFns.c file).
  39. ;
  40. ;  A simple example follows.
  41.  
  42. MENU (Main Menu, None,
  43.   Install Locus, FUNCTION, doHalfInstall, 6, This uses about 3, megabytes of space,
  44.                                             on your hard drive., You must have the,
  45.                                             CD in its drive to, play.,
  46.   Exit  Install, FUNCTION, quit, 1, Aborts the install.,
  47.   MENU_END)
  48.  
  49. ENDSCRIPT
  50.  
  51.